import App from "./App";
import Vue from "vue";
import uView from "uview-ui";
Vue.use(uView);

// #ifdef H5
import "./utils/statistics.js";
// 获取地址栏中的参数
const urlParams = new URLSearchParams(window.location.search);
// 获取参数值
const invitation = urlParams.get('invitation');
uni.setStorageSync('invitation', invitation)
// #endif
// 全局路由拦截
import "@/config/route.js";
// 全局请求拦截
import "@/config/request.js";
// 注册全局组件
import tabbar from "@/components/tabbar.vue";
Vue.component("tabbar", tabbar);
import waterMark from '@/components/waterMark.vue';
Vue.component("waterMark", waterMark)
// end
// 全局mixin
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)
import commonMixin from '@/mixins/common.js'
Vue.mixin(commonMixin)
// end
// 登录逻辑
import {
	login
} from '@/config/login.js'
Vue.prototype.$login = login
import {
	isMobile
} from '@/utils/utils.js'
Vue.prototype.isMobile = isMobile;
import {
	baseURL,
	baseImg
} from '@/config/request.js'
Vue.prototype.baseURL = baseURL;
Vue.prototype.baseImg = baseImg;
Vue.config.productionTip = false;
App.mpType = "app";
import store from './store'
Vue.prototype.$store = store
const app = new Vue({
	store,
	...App,
});
app.$mount();